package cn.bugstack.domain.order.service;

import cn.bugstack.domain.order.model.entity.PayOrderEntity;
import cn.bugstack.domain.order.model.entity.ShopCartEntity;

import java.util.List;

/**
 * @Author: 小新
 * @Date: 2025/3/22 13:31
 * @Description:
 * @Version: v1.0
 */

public interface IOrderService {
    PayOrderEntity createOrder(ShopCartEntity shopCartEntity) throws Exception ;

    /**
     * 更改支付成功的状态
     * @param orderId
     */
    void changeOrderPyaSuccess(String orderId);

    /**
     * 查询
     * @return
     */
    List<String> queryNoPayNotifyOrder();

    /**
     * 查询需要关单的列表
     * @return
     */
    List<String> queryTimeoutClosedOrderList();

    /**
     * 关单
     * @param orderId
     * @return
     */
    boolean changeOrderClose(String orderId);
}
